<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html>
    <head>
        <meta http-equiv="content-type" content="text/html; charset=UTF-8" />

        <title>会员列表</title>

        <link href="<?php echo Yii::app()->baseUrl;?>/static/admin/css/mine.css" type="text/css" rel="stylesheet" />
    </head>
    <body>
        <style>
            .tr_color{background-color: #9F88FF}
        </style>
        <div class="div_head">
            <span>
                <span style="float: left;">当前位置是：商品管理-》商品列表</span>
                <span style="float: right; margin-right: 8px; font-weight: bold;">
                    <a style="text-decoration: none;" href="#">【添加商品】</a>
                </span>
            </span>
        </div>
        <div></div>
        <div class="div_search">
            <span>
                <form action="#" method="get">
                    品牌<select name="s_product_mark" style="width: 100px;">
                        <option selected="selected" value="0">请选择</option>
                        <option value="1">苹果apple</option>
                    </select>
                    <input value="查询" type="submit" />
                </form>
            </span>
        </div>
        <div style="font-size: 13px; margin: 10px 5px;">
            <table class="table_a" border="1" width="100%">
                <tbody><tr style="font-weight: bold;">
                        <td>序号</td>
                        <td>商品名称</td>
                        <td>库存</td>
                        <td>价格</td>
                        <td>商品分类</td>
                        <td>缩略图</td>
                        <td>品牌</td>
                        <td>创建时间</td>
                        <td align="center">操作</td>
                    </tr>
                    <?php foreach($goods_list as $row):?>
                    <tr id="product1">
                        <td><?php echo $row->goods_id;?></td>
                        <td><a href="#"><?php echo $row->goods_name;?></a></td>
                        <td><?php echo $row->goods_number;?></td>
                        <td><?php echo $row->shop_price;?></td>
                        <td><?php echo $row->category->cat_name;?></td>
                        <td><img src="<?php echo $row->goods_thumb;?>" height="40" width="40"></td>
                        <td><?php echo $row->brand->brand_name;?></td>
                        <td><?php echo $row->add_time;?></td>
                        <td><a href="<?php echo $this->createUrl('update',array('id'=>$row->goods_id));?>">修改</a></td>
                        <td><a href="<?php echo $this->createUrl('batch',array('command'=>'delete', 'id'=>$row->goods_id))?>">删除</a></td>
                    </tr>
                    <?php endforeach;?>
                    
                    <tr>
                        <td colspan="20" style="text-align: center;" class="cuspages right">
                            <?php $this->widget('CLinkPager',array('header'=>'翻页','firstPageLabel'=>'首页','lastPageLabel'=>'末页','prevPageLabel'=>'<前页','nextPageLabel'=>'后页>','pages'=>$pages,'maxButtonCount'=>13,));?>
                        </td>
                    </tr>
                </tbody>
            </table>
        </div>
    </body>
</html>

<style>
ul.yiiPager
{
	font-size:11px;
	border:0;
	margin:0;
	padding:0;
	line-height:100%;
	display:inline;
}

ul.yiiPager li
{
	display:inline;
}

ul.yiiPager a:link,
ul.yiiPager a:visited
{
	border:solid 1px #9aafe5;
	font-weight:bold;
	color:#0e509e;
	padding:1px 6px;
	text-decoration:none;
}

ul.yiiPager .page a
{
	font-weight:normal;
}

ul.yiiPager a:hover
{
	border:solid 1px #0e509e;
}

ul.yiiPager .selected a
{
	background:#2e6ab1;
	color:#FFFFFF;
	font-weight:bold;
}

ul.yiiPager .hidden a
{
	border:solid 1px #DEDEDE;
	color:#888888;
}

/**
 * Hide first and last buttons by default.
 */
ul.yiiPager .first,
ul.yiiPager .last
{
	display:none;
}
</style>